enum {PARTY_Y=112, BONUS_X2=114, BONUS_X8=116, BONUS_X4=118, BONUS_X6=120, PUKE_P=128, PUKE_E=130,
 DROP_ZONE=132, PUKE_U=133, PUKE_K=135, MAD_M=137, ARCADE=140, MAD_A=142, MAD_D=145, FIVE_M=148, FIRST=151,
FIVE_TIMES=153, SECOND=156, THREE_M=158, BONUS_250K=161, THIRD=164, HIT_H=167, SODA=169, HIT_I=174, BONUS_750K=176, 
POP=178, MONSTER=185, LAUGH_AGAIN=190, ICE=195, HIT_T=204, BONUS_500K=206, ONE_M=209, MONSTER_5M=211, CRAZY_C=213,
MB=215, BALL=218, CRAZY_R=220, HAPPY_HOUR=222, HB=225, CRAZY_A=228, JACKPOT=230, DB=232, MEGA_LAUGH=235,
CRAZY_Z=237, EXTRA_BALL=240, DMD_COLOR=242, CRAZY_Y=244, PARTY_P=246, PARTY_A=248, PARTY_R=250, PARTY_T=253};

extern int hackit;
extern GtkTextBuffer* debug_text;
extern GtkTextView* debug_textview;
extern bool lamps_changed;

extern GtkWidget* debug_label;


void print_PARTYland(bool* lamp){
	if (!lamps_changed) return;
	lamps_changed = false;
	if (!hackit) return;

	static char output_string[53*39+1+2+2000];
  char* str = output_string;
	sprintf(str, "<tt>");
	sprintf(str+=4, "                                                    \n");
	sprintf(str+=53, "                  %s            %s                    \n", lamp[PUKE_P] ? "P":".", lamp[PUKE_E] ? "E":".");
	sprintf(str+=53, " %s                 %s    %s                        \n", lamp[DROP_ZONE] ? "drop":"....", lamp[PUKE_U] ? "U":".", lamp[PUKE_K] ? "K":".");
	sprintf(str+=53, " %s                                               \n", lamp[DROP_ZONE] ? "zone":"....");
	sprintf(str+=53, "                                                    \n");
	sprintf(str+=53, "     %s                                              \n", lamp[MAD_M] ? "M":".");
	sprintf(str+=53, "                                                    \n");
	sprintf(str+=53, "    %s         %s                                \n", lamp[MAD_A] ? "A":".", lamp[ARCADE] ? "ARCADE":"......");
	sprintf(str+=53, "                                                    \n");
	sprintf(str+=53, "                                                    \n");
	sprintf(str+=53, "     %s     %s                                      \n", lamp[MAD_D] ? "D":".", lamp[FIRST] ? "1st":"...");
	sprintf(str+=53, "                                                    \n");
	sprintf(str+=53, "                          %s           %s           \n", lamp[FIVE_TIMES] ? "5x":"..", lamp[FIVE_M] ? "5M":"..");
	sprintf(str+=53, "            %s                    %s               \n", lamp[SECOND] ? "2nd":"...", lamp[THREE_M] ? "3M":"..");
	sprintf(str+=53, "                           %s                       \n", lamp[ONE_M] ? "1M":"..");
	sprintf(str+=53, "                                                    \n");
	sprintf(str+=53, "             %s                                    \n", lamp[THIRD] ? "3rd":"...");
	sprintf(str+=53, "                        %s                           \n", lamp[HIT_H] ? "H":".");
	sprintf(str+=53, "   %s                  %s                          \n", lamp[SODA] ? "soda":"....", lamp[HIT_I] ? "I":".");
	sprintf(str+=53, "                          %s        %s             \n", lamp[HIT_T] ? "T":".", lamp[BONUS_750K] ? "750k":"....");
	sprintf(str+=53, "%s                             %s                \n", lamp[POP] ? "pop":"...", lamp[BONUS_500K] ? "500k":"....");
	sprintf(str+=53, "     %s                            %s            \n", lamp[ICE] ? "ice":"...", lamp[BONUS_250K] ? "250k":"....");
	sprintf(str+=53, "                                             %s\n", lamp[MONSTER] ? "monster":".......");
	sprintf(str+=53, "      %s                                             \n", lamp[CRAZY_C] ? "C":".");
	sprintf(str+=53, "                                            %s      \n", lamp[MONSTER_5M] ? "5M":"..");
	sprintf(str+=53, "       %s                              %s            \n", lamp[CRAZY_R] ? "R":".", lamp[MB] ? "MB":"..");
	sprintf(str+=53, "                     %s                %s      \n", lamp[HAPPY_HOUR] ? "happy":".....", lamp[BALL] ? "ball":"....");
	sprintf(str+=53, "        %s             %s          %s              \n", lamp[CRAZY_A] ? "A":".", lamp[HAPPY_HOUR] ? "hour":"....", lamp[HB] ? "HB":"..");
	sprintf(str+=53, "                                        %s          \n", lamp[JACKPOT] ? "JP":"..");
	sprintf(str+=53, "         %s              %s      %s                \n", lamp[CRAZY_Z] ? "Z":".", lamp[MEGA_LAUGH] ? "mega":"....", lamp[DB] ? "DB":"..");
	sprintf(str+=53, " %s                     %s              %s       \n", lamp[EXTRA_BALL] ? "XB":"..", lamp[MEGA_LAUGH] ? "laugh":".....", lamp[EXTRA_BALL] ? "XB":"..");
	sprintf(str+=53, "          %s                                         \n", lamp[CRAZY_Y] ? "Y":".");
	sprintf(str+=53, "               %s   %s   %s   %s   %s                    \n", lamp[PARTY_P] ? "P":".", lamp[PARTY_A] ? "A":".", lamp[PARTY_R] ? "R":".", lamp[PARTY_T] ? "T":".", lamp[PARTY_Y] ? "Y":".");
	sprintf(str+=53, "                    l a n d                         \n");
	sprintf(str+=53, "                                                    \n");
	sprintf(str+=53, "       %s                             %s            \n", lamp[BONUS_X2] ? "x2":"..", lamp[BONUS_X8] ? "x8":"..");
	sprintf(str+=53, "            %s                   %s                 \n", lamp[BONUS_X4] ? "x4":"..", lamp[BONUS_X6] ? "x6":"..");
	sprintf(str+=53, "                     %s                          \n", lamp[LAUGH_AGAIN] ? "laugh":".....");
	sprintf(str+=53, "                     %s                          \n", lamp[LAUGH_AGAIN] ? "again":".....");
	sprintf(str, "</tt>");

//	printf("%s", output_string);
	//fflush(stdout);
 
	/*-- Add some text to the window --*/
	//gtk_text_buffer_set_text(debug_text, output_string, -1);
	gtk_label_set_markup((GtkLabel*)debug_label, output_string);
	//gtk_widget_realize((GtkWidget*)debug_textview);

	return;
}

